package com.xuzimian.globaldemo.office.excel.pojo;

import java.util.List;
import java.util.Map;

import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Maps;
import com.google.common.collect.Multimap;

public class ExcelCellData {

    public ExcelCellData() {
    }

    private Multimap<String, Map<String, String>> datas = ArrayListMultimap.create();

    public Multimap<String, Map<String, String>> getDatas() {
        return this.datas;
    }

    public void put(String firstKey, String secondKey, String value) {
        Map<String, String> valueMap = Maps.newHashMap();
        valueMap.put(secondKey, value);
        datas.put(firstKey, valueMap);
    }

    public void put(String firstKey, String value) {
        this.put(firstKey, "null", value);
    }

    public List<Map<String,String>> getValue(String firstKey) {
        return (List<Map<String, String>>) datas.get(firstKey);
    }
}